import React from 'react'
import { connect } from 'react-redux'
import { getUserList } from '../../redux/chartuser.redux'
import Usercard from '../component/usercard/index'

class Genius extends React.Component{
  componentDidMount() {
    this.props.getUserList('genius')
  }
  render() {
    return <Usercard userlist={ this.props.userlist } />
  }
}

export default connect(state => state.chartuser, { getUserList })(Genius)